.class public final Lnet/tsapps/topdeals/b/l;
.super Landroid/app/Dialog;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/Button;

.field private b:Landroid/widget/Button;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/widget/EditText;

.field private e:Landroid/content/DialogInterface$OnClickListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->requestWindowFeature(I)Z

    const v0, 0x7f03000a

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->setContentView(I)V

    iput-object p2, p0, Lnet/tsapps/topdeals/b/l;->e:Landroid/content/DialogInterface$OnClickListener;

    const v0, 0x7f050028

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/l;->c:Landroid/widget/EditText;

    const v0, 0x7f050029

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/l;->d:Landroid/widget/EditText;

    const v0, 0x7f050021

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/l;->a:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->a:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f050020

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/l;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/l;->b:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->b:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->c:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final a(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->c:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public final b()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->d:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final c()V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->d:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public final onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->b:Landroid/widget/Button;

    if-ne p1, v0, :cond_1

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/l;->dismiss()V

    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->e:Landroid/content/DialogInterface$OnClickListener;

    const/4 v1, 0x1

    invoke-interface {v0, p0, v1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/b/l;->a:Landroid/widget/Button;

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/l;->dismiss()V

    goto :goto_0
.end method
